﻿@model List<ServeNHL.Models.eventViewModel>

@{
    ViewBag.Title = "Dashboard";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="row">
    <div class="spacer7"></div>
    <div class="header col-lg-12 col-md-12 col-sm-12 col-xs-12 ">

        <div class="signupLogo">Event Management</div>
    </div>
</div>

<div class="spacer14"></div>
<table class="table-responsive table-striped" align="center">
    <thead>
        <tr>
            <td colspan="6" class="left"><input type="button" title="Add Event" value="Add Event" onclick="location.href='@Url.Action("Add", "Events")'" /></td>
        </tr>
        <tr>
            <th>Date</th>
            <th>Event</th>
            <th>Signed Up</th>
            <th>View</th>
            <th>Edit</th>
            <th>Delete</th>
        </tr>
    </thead>

    <tfoot>
        <tr>
            <td colspan="6" class="left"><input type="button" title="Add Event" value="Add Event" onclick="location.href='@Url.Action("Add", "Events")'" /></td>
        </tr>
        <tr>
            <th>Date</th>
            <th>Event</th>
            <th>Signed Up</th>
            <th>View</th>
            <th>Edit</th>
            <th>Delete</th>
        </tr>
    </tfoot>

    <tbody id="eventDashboardSummary">

    @foreach(var eventItem in Model)
    {
        <tr>
            <td>Date</td>
            <td>Event</td>
            <td>Signed Up</td>
            <td>View</td>
            <td>Edit</td>
            <td>Delete</td>
        </tr>
    }

    </tbody>
</table>
